package com.neusoft;

public class Exarr3 {
	
	public static void main(String[] args) {
		String[] cards = {
				"♠A", "♠2","♠3","♠4", "♠5", "♠6", "♠7", "♠8", "♠9", "♠10", "♠J", "♠Q", "♠K", 
				"♥A", "♥2", "♥3", "♥4", "♥5", "♥6", "♥7", "♥8","♥9", "♥10", "♥J","♥Q","♥K",
				"♣A", "♣2", "♣3", "♣4", "♣5", "♣6", "♣7", "♣8", "♣9", "♣10", "♣J","♣Q","♣K",
				"♦A","♦2","♦3","♦4","♦5","♦6","♦7","♦8","♦9","♦10","♦J","♦Q","♦K"
		};
		 // 抽取指定的三种扑克牌
        int num1 = 1;
        int num2 = 5;
        int num3 = 50;
        String[] pk3 = get3(cards , num1 ,num2,num3);
        // 打印抽取的牌
        for (int i = 0; i < pk3.length; i++) {
            System.out.print(pk3[i] + " ");
        }
	}
	  public static String[] get3(String[] cards, int num1, int num2, int num3) {
	        String[] pk3 = new String[3];
	        pk3[0] = cards[num1 - 1];
	        pk3[1] = cards[num2 - 1];
	        pk3[2] = cards[num3 - 1];
	        return pk3;
	    }
	
	
}
